<?PHP

// MinBS - Minimalist Blogging System
// Developed by Juliano "tibone" Flores
// http://code.google.com/p/minbs/


require_once('required.php');
session_start();
if(!$_SESSION['minbs']=="logged"){
header("location:index.php");
}

$cattitle = $_POST['title'];

$insert_query = "INSERT INTO minbs_categories (`id`, `name`) VALUES (NULL, '$cattitle');";

$inserted = mysql_query($insert_query, $connection);

header("location:admin.php");

?>
